<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>农资与农产品全程供应链物流平台</title>
<meta name="kewywords" content="农资与农产品全程供应链物流平台" />
<meta name="description" content="农资与农产品全程供应链物流平台" />
<link href="css/style.css" type="text/css" rel="stylesheet" />
<link href="css/login.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/dialog/lhgdialog.js?skin=default"></script>
<script type="text/javascript">
	function check(){
		var pattern = new RegExp(/^[0-9-+]+$/);
        var orderid = $("#orderId").val();
        if($.trim(orderid).length != 12){
        	showTip("请输入12位数字订单号码");
        	return;
        }else if(!pattern.test(orderid)){
        	showTip("您输入的号码中含有非数字字符，请重新输入");
        	return;
        }
		$("#orderQuery").submit();	
	}
	function showTip(alertMessage){
		$.dialog({
			title: "提示",
		    time: 5,
		    lock: true,
		    content: alertMessage,
		    width: 160,
	    	height: 80
		});
	}
</script>
</head>
<body>
	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		align="center">
		<tr>
			<td height="126" class="top"><table width="100%" border="0"
					align="center" cellpadding="0" cellspacing="0" class="tl">
					<tr>
						<td width="42%" height="126" align="left" valign="top"><img
							src="images/l_top.jpg" alt="" width="750" height="126" /></td>
						<td width="47%" valign="top"></td>
						<td width="11%" align="right"><img src="images/rt.jpg" alt=""
							width="170" height="126" /></td>
					</tr>
				</table></td>
		</tr>
	</table>
	<div class="login-body">
		<form action="orderQuery" id = "orderQuery" method="post">		
  <div class="operate-log fl" style="width: 410px;" align="center">
    <table width="410px">
      <tr >
         <td  align="left" width="300px">
                          订单号：
          <input type="text"   class="text-log"  id="orderId" name="orderId" value="<s:property value="#session.id"/>"/>
          </td>
       <td width="100">
		<input type="button" onclick="check()" style="background:url(images/q_bt1.jpg);border-style:none; width:70px; height:28px; background-repeat:no-repeat; " />
	   </td>
      </tr>
      <tr>
      <td colspan="2">
      &nbsp;
      </td>
      </tr>
      <tr>
      <td colspan="2">
      	<div style="height:300px;overflow-y: scroll;overflow-x: auto;">
      <%-- <fieldset style="width: 350px">
				<legend>物流信息</legend>
				
				<table>
					<s:if test="#session.order==0">
						<tr>
							<td>暂时没有相关的物流信息！</td>
						</tr>
					</s:if>
					<s:else>
				
						<s:iterator value="maps" id="order">
							<tr height="26" bgcolor="#efefef">
								<td height="26" align="center" valign="middle" bgcolor="#FFFFFF">
									<s:date name="#order.registerdate"
										format="yyyy-MM-dd  HH:mm:ss" />
								</td>
								<td>&nbsp;</td>
								<td height="26" align="left" valign="middle" bgcolor="#FFFFFF">
									<s:property value="#order.remark" />
								</td>
							</tr>
						</s:iterator>
					
					</s:else>

				</table>
			</fieldset> --%>
			<table width="390px">
			<tr>
			<td colspan="3" align="center">
			物流信息
			</td>
			</tr>
			
			<s:if test="#session.order==0">
						<tr>
							<td colspan="3" align="center">暂时没有相关的物流信息！</td>
						</tr>
					</s:if>
					<s:else>
				
						<s:iterator value="maps" id="order">
							<tr height="26" bgcolor="#efefef">
								<td height="26" align="center" valign="middle" bgcolor="#FFFFFF" style="font-size: 12px;">
									<s:date name="#order.registerdate"
										format="yyyy-MM-dd  HH:mm:ss" />
								</td>
								<td>&nbsp;</td>
								<td height="26" align="left" valign="middle" bgcolor="#FFFFFF" style="font-size: 12px;" >
									<s:property value="#order.remark" />
								</td>
							</tr>
						</s:iterator>
					
					</s:else>
			
			</table>
			
			</div>
      </td>
      </tr>
    </table>
  </div>
  </form>
		<div class=" img-log fl">
		<img src="images/login_pig.jpg" alt="" width="538" height="337" />
		</div>
		<div class="clr"></div>
	</div>

	<div class="bottom">版权所有：安徽朗坤物联网</div>
</body>
</html>